package com.mydemo.design_pattern.create_type.factory;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: DemoTest, v1.0 2019-09-18 10:15 liming1 Exp $
 */
public class DemoTest {
    public static void main(String[] args) {
        IProduct demo1 = ProductFactory.getProduct("demo1");
        demo1.print();

        IProduct demo2 = ProductFactory.getProduct("demo2");
        demo2.print();

        IProduct demo3 = ProductFactory.getProduct("demo3");
        demo3.print();
    }
}
